<?php
	require("class/Client.php");
	require 'class/ArrayList.php';
	include("class/Session.php");
	include 'class/Markers.php';
	include 'phpsqlajax_dbinfo.php';
	
	session_start();
	
	$client = $_SESSION['Client'];
	echo "Id: ".$client->id;
	echo "<br>nome: ".$client->name;
	echo "<br>email: ".$client->email;
	echo "<br>password: ".$client->password;
	echo "<br>type: ".$client->type;
	
	/*
	$array = new ArrayList();
	$array->add($client);
	
	while($c = $array->next())
		echo "Nome do Cliente: ".$c->name;
	*/
	
	$markers = new Markers();
	$arrayList = new ArrayList();
	$arrayList = $markers->serch($client->id);
	
	while($marker = $arrayList->next()){
		echo "<br><br>Nome: ".$marker->getName();
	}
?>
